import 'package:flutter_ahj_app/base/basewidget/model/BaseModel.dart';
import 'package:rxdart/rxdart.dart';

class CompanyInfoModel extends BaseModel{

  BehaviorSubject<String> _behaviorSubject = BehaviorSubject();

  Stream<String> get dataStream => _behaviorSubject.stream;

  getData(){

    return _behaviorSubject.add("我是数据");
  }

  @override
  void dispose() {
    // TODO: implement dispose
    super.dispose();
    

    if (_behaviorSubject != null) {
      _behaviorSubject.close();
    }
  }

}